﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    EnableEventValidation="false" CodeBehind="Update.aspx.cs" Inherits="Wicresoft.RDW.Product.Update" %>

<%@ Register Src="../UserControls/LocationLabControl.ascx" TagName="LocationLabControl"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<style type="text/css">
        #ll li label
        {
            margin: 5px!important;
            width: 120px!important;
            float: left!important;
        }
    </style>
    <script language="javascript" type="text/javascript">
        $(function () {
            $("#<%=btnSubmitPro.ClientID %>").click(checkAllTextValid);
            $("#<%=btnCancel.ClientID %>").click(checkAllTextValid);
        });     
   </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="main_title">
        <h2>
            <%=Resources.NameResource.Product_Manage%></h2>
    </div>
    <div class="line_gray">
    </div>
    <br />
    <asp:PlaceHolder ID="phmain" runat="server">
        <div>
            <uc1:LocationLabControl ID="ucLocationLab" EnableValidation="true" Vertical="false"
                runat="server" />
        </div>
        <div class="divForm">
            <dl>
                <dd>
                    <label>
                        <%=Resources.ManageResource.mgr_lblProductStatus%></label>
                    <asp:RadioButton ID="rbtnActive" Checked="true" GroupName="a" runat="server" />
                    <asp:Label ID="lblActive" runat="server" />
                    <asp:RadioButton ID="rbtnInactive" GroupName="a" runat="server" />
                    <asp:Label ID="lblInactive" runat="server" />
                </dd>
            </dl>
        </div>
        <div>
            <div style="float: left; width: 50%">
                <div class="divForm">
                    <dl>
                        <dd>
                            <label>
                                <%=Resources.ManageResource.mgr_lblProductNameCN%></label>
                            <asp:TextBox ID="txtChName" runat="server" MaxLength="50" />
                            <asp:RequiredFieldValidator ID="rfvtxtChName" runat="server" ControlToValidate="txtChName"
                                ErrorMessage="*" ForeColor="Red" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </dd>
                        <dd>
                            <label>
                                <%=Resources.NameResource.Product_DemoType_CN%></label>
                            <asp:TextBox ID="txtDemoTypeCN" runat="server" MaxLength="20" />
                        </dd>
                        <dd>
                            <label>
                                <%=Resources.NameResource.Product_DemoContent_CN%></label>
                            <asp:TextBox ID="txtDemoContenCN" runat="server" TextMode="MultiLine" />
                            <asp:RegularExpressionValidator ID="revtxtDemoContenCN" ControlToValidate="txtDemoContenCN"
                                ForeColor="Red" Text="*" ValidationExpression="^[\s\S]{0,1000}$" runat="server" />
                        </dd>
                        <dd>
                            <label>
                                <%=Resources.NameResource.Product_DemoStep_CN%></label>
                            <asp:TextBox ID="txtDemoStepCN" runat="server" TextMode="MultiLine" />
                            <asp:RegularExpressionValidator ID="revtxtDemoStepCN" ControlToValidate="txtDemoStepCN"
                                ForeColor="Red" Text="*" ValidationExpression="^[\s\S]{0,1000}$" runat="server" />
                        </dd>
                        <dd>
                            <label>
                                <%=Resources.NameResource.Product_KeyComments_CN%></label>
                            <asp:TextBox ID="txtKeyCommentsCN" runat="server" TextMode="MultiLine" />
                            <asp:RegularExpressionValidator ID="revtxtKeyCommentsCN" ControlToValidate="txtKeyCommentsCN"
                                ForeColor="Red" Text="*" ValidationExpression="^[\s\S]{0,1000}$" runat="server" />
                        </dd>
                        <dd>
                            <label>
                                <%=Resources.NameResource.Product_Equipment_CN%></label>
                            <asp:TextBox ID="txtEquipmentCN" runat="server" MaxLength="100" />
                        </dd>
                    </dl>
                </div>
            </div>
            <div style="float: right; width: 50%">
                <div class="divForm">
                    <dl>
                        <dd>
                            <label>
                                <%=Resources.ManageResource.mgr_lblProductNameEN%></label>
                            <asp:TextBox ID="txtEnName" runat="server" MaxLength="50" />
                            <asp:RequiredFieldValidator ID="rfvtxtEnName" runat="server" ControlToValidate="txtEnName"
                                ErrorMessage="*" ForeColor="Red" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </dd>
                        <dd>
                            <label>
                                <%=Resources.NameResource.Product_DemoType_EN%></label>
                            <asp:TextBox ID="txtDemoTypeEN" runat="server" txtDemoContenEN="20" />
                        </dd>
                        <dd>
                            <label>
                                <%=Resources.NameResource.Product_DemoContent_EN%></label>
                            <asp:TextBox ID="txtDemoContenEN" runat="server" TextMode="MultiLine" />
                            <asp:RegularExpressionValidator ID="revtxtDemoContenEN" ControlToValidate="txtDemoContenEN"
                                ForeColor="Red" Text="*" ValidationExpression="^[\s\S]{0,1000}$" runat="server" />
                        </dd>
                        <dd>
                            <label>
                                <%=Resources.NameResource.Product_DemoStep_EN%></label>
                            <asp:TextBox ID="txtDemoStepEN" runat="server" TextMode="MultiLine" />
                            <asp:RegularExpressionValidator ID="revtxtDemoStepEN" ControlToValidate="txtDemoStepEN"
                                ForeColor="Red" Text="*" ValidationExpression="^[\s\S]{0,1000}$" runat="server" />
                        </dd>
                        <dd>
                            <label>
                                <%=Resources.NameResource.Product_KeyComments_EN%></label>
                            <asp:TextBox ID="txtKeyCommentsEN" runat="server" TextMode="MultiLine" />
                            <asp:RegularExpressionValidator ID="revtxtKeyCommentsEN" ControlToValidate="txtKeyCommentsEN"
                                ForeColor="Red" Text="*" ValidationExpression="^[\s\S]{0,1000}$" runat="server" />
                        </dd>
                        <dd>
                            <label>
                                <%=Resources.NameResource.Product_Equipment_EN%></label>
                            <asp:TextBox ID="txtEquipmentEN" runat="server" MaxLength="100" />
                        </dd>
                    </dl>
                </div>
            </div>
        </div>
        <br />
        <div>
            <br />
            <div class="divForm">
                <dl>
                    <dd>
                        <label>
                            <%=Resources.NameResource.Language%></label>
                        <asp:CheckBox ID="chkChinese" runat="server" />
                        <asp:Label ID="lblChinese" runat="server" />
                        <asp:CheckBox ID="chkEnglish" runat="server" />
                        <asp:Label ID="lblEnglish" runat="server" />
                        <asp:Label ID="lblErrmessage" runat="server" ForeColor="Red" />
                    </dd>
                </dl>
            </div>
            <div class="divForm">
                <dl>
                    <dd>
                        <label>
                            <%=Resources.ManageResource.mgr_lblUploadPicture%></label>
                        <asp:FileUpload ID="PicFileUpload" runat="server" />
                        <asp:Label ID="lblUploadMessage" ForeColor="Red" runat="server"></asp:Label>
                    </dd>
                </dl>
            </div>
            <div class="sqbtnPane">
                <p class="sqbtn">
                    <asp:LinkButton ID="btnSubmitPro" runat="server" OnClick="btnSubmitPro_Click" /></p>
                <p class="sqbtn">
                    <asp:LinkButton ID="btnCancel" runat="server" OnClick="btnCancel_Click" CausesValidation="false" /></p>
            </div>
        </div>
    </asp:PlaceHolder>
</asp:Content>
